﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Cafe.DataObjectTransfer;
using Cafe.BusinessLogic;

namespace Cafe.Presentation
{
    public partial class SalesManagementForm : DevExpress.XtraEditors.XtraForm
    {
        private CafeManagementService _cafeService = Program.cafeService;
        private IList<Desk> desks;
        public SalesManagementForm()
        {
            InitializeComponent();
        }

        private void SalesManagementForm_Load(object sender, EventArgs e)
        {
            desks = _cafeService.GetDesks();
            foreach (Desk desk in desks)
            {
                lvDesk.Items.Add(desk.DeskName, desk.isDirty ? 2 : 1);
            }
        }

        private void lvDesk_SelectedIndexChanged(object sender, EventArgs e)
        {
            
        }
    }
}